#region License

// Copyright (c) 2013, ClearCanvas Inc.
// All rights reserved.
// http://www.clearcanvas.ca
//
// This file is part of the ClearCanvas RIS/PACS open source project.
//
// The ClearCanvas RIS/PACS open source project is free software: you can
// redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// The ClearCanvas RIS/PACS open source project is distributed in the hope that it
// will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
// Public License for more details.
//
// You should have received a copy of the GNU General Public License along with
// the ClearCanvas RIS/PACS open source project.  If not, see
// <http://www.gnu.org/licenses/>.

#endregion

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.832
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation
{
    using System.Runtime.Serialization;
    using System;
    
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.clearcanvas.ca/imageViewer/automation")]
    [System.SerializableAttribute()]
    public partial class GetActiveViewersResult : object, System.Runtime.Serialization.IExtensibleDataObject
    {
        
        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
        
        private System.ComponentModel.BindingList<ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.Viewer> ActiveViewersField;
        
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
        public System.ComponentModel.BindingList<ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.Viewer> ActiveViewers
        {
            get
            {
                return this.ActiveViewersField;
            }
            set
            {
                this.ActiveViewersField = value;
            }
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.clearcanvas.ca/imageViewer/automation")]
    [System.SerializableAttribute()]
    public partial class Viewer : object, System.Runtime.Serialization.IExtensibleDataObject
    {
        
        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
        
        private System.Guid IdentifierField;
        
        private string PrimaryStudyInstanceUidField;
        
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
        public System.Guid Identifier
        {
            get
            {
                return this.IdentifierField;
            }
            set
            {
                this.IdentifierField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
        public string PrimaryStudyInstanceUid
        {
            get
            {
                return this.PrimaryStudyInstanceUidField;
            }
            set
            {
                this.PrimaryStudyInstanceUidField = value;
            }
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.clearcanvas.ca/imageViewer/automation")]
    [System.SerializableAttribute()]
    public partial class GetViewerInfoRequest : object, System.Runtime.Serialization.IExtensibleDataObject
    {
        
        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
        
        private ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.Viewer ViewerField;
        
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
        public ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.Viewer Viewer
        {
            get
            {
                return this.ViewerField;
            }
            set
            {
                this.ViewerField = value;
            }
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.clearcanvas.ca/imageViewer/automation")]
    [System.SerializableAttribute()]
    public partial class GetViewerInfoResult : object, System.Runtime.Serialization.IExtensibleDataObject
    {
        
        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
        
        private System.ComponentModel.BindingList<string> AdditionalStudyInstanceUidsField;
        
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
        public System.ComponentModel.BindingList<string> AdditionalStudyInstanceUids
        {
            get
            {
                return this.AdditionalStudyInstanceUidsField;
            }
            set
            {
                this.AdditionalStudyInstanceUidsField = value;
            }
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.clearcanvas.ca/imageViewer/automation")]
    [System.SerializableAttribute()]
    public partial class OpenStudiesRequest : object, System.Runtime.Serialization.IExtensibleDataObject
    {
        
        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private System.Nullable<bool> ActivateIfAlreadyOpenField;
        
        private System.ComponentModel.BindingList<ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.OpenStudyInfo> StudiesToOpenField;
        
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public System.Nullable<bool> ActivateIfAlreadyOpen
        {
            get
            {
                return this.ActivateIfAlreadyOpenField;
            }
            set
            {
                this.ActivateIfAlreadyOpenField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
        public System.ComponentModel.BindingList<ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.OpenStudyInfo> StudiesToOpen
        {
            get
            {
                return this.StudiesToOpenField;
            }
            set
            {
                this.StudiesToOpenField = value;
            }
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.clearcanvas.ca/imageViewer/automation")]
    [System.SerializableAttribute()]
    public partial class OpenStudyInfo : object, System.Runtime.Serialization.IExtensibleDataObject
    {
        
        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string SourceAETitleField;
        
        private string StudyInstanceUidField;
        
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public string SourceAETitle
        {
            get
            {
                return this.SourceAETitleField;
            }
            set
            {
                this.SourceAETitleField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
        public string StudyInstanceUid
        {
            get
            {
                return this.StudyInstanceUidField;
            }
            set
            {
                this.StudyInstanceUidField = value;
            }
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.clearcanvas.ca/imageViewer/automation")]
    [System.SerializableAttribute()]
    public partial class OpenStudiesResult : object, System.Runtime.Serialization.IExtensibleDataObject
    {
        
        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
        
        private ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.Viewer ViewerField;
        
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
        public ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.Viewer Viewer
        {
            get
            {
                return this.ViewerField;
            }
            set
            {
                this.ViewerField = value;
            }
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.clearcanvas.ca/imageViewer/automation")]
    [System.SerializableAttribute()]
    public partial class ActivateViewerRequest : object, System.Runtime.Serialization.IExtensibleDataObject
    {
        
        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
        
        private ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.Viewer ViewerField;
        
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
        public ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.Viewer Viewer
        {
            get
            {
                return this.ViewerField;
            }
            set
            {
                this.ViewerField = value;
            }
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.clearcanvas.ca/imageViewer/automation")]
    [System.SerializableAttribute()]
    public partial class CloseViewerRequest : object, System.Runtime.Serialization.IExtensibleDataObject
    {
        
        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
        
        private ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.Viewer ViewerField;
        
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
        public ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.Viewer Viewer
        {
            get
            {
                return this.ViewerField;
            }
            set
            {
                this.ViewerField = value;
            }
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.clearcanvas.ca/imageViewer/automation")]
    [System.SerializableAttribute()]
    public partial class NoActiveViewersFault : object, System.Runtime.Serialization.IExtensibleDataObject
    {
        
        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
        
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.clearcanvas.ca/imageViewer/automation")]
    [System.SerializableAttribute()]
    public partial class ViewerNotFoundFault : object, System.Runtime.Serialization.IExtensibleDataObject
    {
        
        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string FailureDescriptionField;
        
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public string FailureDescription
        {
            get
            {
                return this.FailureDescriptionField;
            }
            set
            {
                this.FailureDescriptionField = value;
            }
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://www.clearcanvas.ca/imageViewer/automation")]
    [System.SerializableAttribute()]
    public partial class OpenStudiesFault : object, System.Runtime.Serialization.IExtensibleDataObject
    {
        
        [System.NonSerializedAttribute()]
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
        
        [System.Runtime.Serialization.OptionalFieldAttribute()]
        private string FailureDescriptionField;
        
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute()]
        public string FailureDescription
        {
            get
            {
                return this.FailureDescriptionField;
            }
            set
            {
                this.FailureDescriptionField = value;
            }
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.ServiceContractAttribute(Namespace="http://www.clearcanvas.ca/imageViewer/automation", ConfigurationName="ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.IV" +
        "iewerAutomation")]
    public interface IViewerAutomation
    {
        
        [System.ServiceModel.OperationContractAttribute(Action="http://www.clearcanvas.ca/imageViewer/automation/IViewerAutomation/GetActiveViewe" +
            "rs", ReplyAction="http://www.clearcanvas.ca/imageViewer/automation/IViewerAutomation/GetActiveViewe" +
            "rsResponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.NoActiveViewersFault), Action="http://www.clearcanvas.ca/imageViewer/automation/IViewerAutomation/GetActiveViewe" +
            "rsNoActiveViewersFaultFault", Name="NoActiveViewersFault")]
        ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.GetActiveViewersResult GetActiveViewers();
        
        [System.ServiceModel.OperationContractAttribute(Action="http://www.clearcanvas.ca/imageViewer/automation/IViewerAutomation/GetViewerInfo", ReplyAction="http://www.clearcanvas.ca/imageViewer/automation/IViewerAutomation/GetViewerInfoR" +
            "esponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.ViewerNotFoundFault), Action="http://www.clearcanvas.ca/imageViewer/automation/IViewerAutomation/GetViewerInfoV" +
            "iewerNotFoundFaultFault", Name="ViewerNotFoundFault")]
        ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.GetViewerInfoResult GetViewerInfo(ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.GetViewerInfoRequest request);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://www.clearcanvas.ca/imageViewer/automation/IViewerAutomation/OpenStudies", ReplyAction="http://www.clearcanvas.ca/imageViewer/automation/IViewerAutomation/OpenStudiesRes" +
            "ponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.OpenStudiesFault), Action="http://www.clearcanvas.ca/imageViewer/automation/IViewerAutomation/OpenStudiesOpe" +
            "nStudiesFaultFault", Name="OpenStudiesFault")]
        ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.OpenStudiesResult OpenStudies(ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.OpenStudiesRequest request);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://www.clearcanvas.ca/imageViewer/automation/IViewerAutomation/ActivateViewer" +
            "", ReplyAction="http://www.clearcanvas.ca/imageViewer/automation/IViewerAutomation/ActivateViewer" +
            "Response")]
        [System.ServiceModel.FaultContractAttribute(typeof(ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.ViewerNotFoundFault), Action="http://www.clearcanvas.ca/imageViewer/automation/IViewerAutomation/ActivateViewer" +
            "ViewerNotFoundFaultFault", Name="ViewerNotFoundFault")]
        void ActivateViewer(ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.ActivateViewerRequest request);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://www.clearcanvas.ca/imageViewer/automation/IViewerAutomation/CloseViewer", ReplyAction="http://www.clearcanvas.ca/imageViewer/automation/IViewerAutomation/CloseViewerRes" +
            "ponse")]
        [System.ServiceModel.FaultContractAttribute(typeof(ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.ViewerNotFoundFault), Action="http://www.clearcanvas.ca/imageViewer/automation/IViewerAutomation/CloseViewerVie" +
            "werNotFoundFaultFault", Name="ViewerNotFoundFault")]
        void CloseViewer(ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.CloseViewerRequest request);
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    public interface IViewerAutomationChannel : ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.IViewerAutomation, System.ServiceModel.IClientChannel
    {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    public partial class ViewerAutomationClient : System.ServiceModel.ClientBase<ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.IViewerAutomation>, ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.IViewerAutomation
    {
        
        public ViewerAutomationClient()
        {
        }
        
        public ViewerAutomationClient(string endpointConfigurationName) : 
                base(endpointConfigurationName)
        {
        }
        
        public ViewerAutomationClient(string endpointConfigurationName, string remoteAddress) : 
                base(endpointConfigurationName, remoteAddress)
        {
        }
        
        public ViewerAutomationClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(endpointConfigurationName, remoteAddress)
        {
        }
        
        public ViewerAutomationClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress)
        {
        }
        
        public ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.GetActiveViewersResult GetActiveViewers()
        {
            return base.Channel.GetActiveViewers();
        }
        
        public ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.GetViewerInfoResult GetViewerInfo(ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.GetViewerInfoRequest request)
        {
            return base.Channel.GetViewerInfo(request);
        }
        
        public ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.OpenStudiesResult OpenStudies(ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.OpenStudiesRequest request)
        {
            return base.Channel.OpenStudies(request);
        }
        
        public void ActivateViewer(ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.ActivateViewerRequest request)
        {
            base.Channel.ActivateViewer(request);
        }
        
        public void CloseViewer(ClearCanvas.ImageViewer.DesktopServices.Automation.TestClient.ViewerAutomation.CloseViewerRequest request)
        {
            base.Channel.CloseViewer(request);
        }
    }
}
